package com.soul.server.controller;

import com.soul.model.vo.HuanXinUserVo;
import com.soul.server.server.HuanxinService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
@Slf4j
@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    @Autowired
    private HuanxinService huanxinService;

    /**
     *  前端请求环信-即时通讯账号
     * @return
     */
    @RequestMapping(path = "/user",method = RequestMethod.GET)
    public ResponseEntity findHuanxinUser(){
        return ResponseEntity.ok(huanxinService.findHuanxinUser());
    }
}
